import request from '@/config/axios'
/**
 * 分页查询项目
 */
export const pageQuery = (params) => {
  return request.get({ url: '/infra/devops/project/page-query', params })
}

/**
 * 新增项目
 */
export const create = (data) => {
  return request.post({ url: '/infra/devops/project/create', data })
}

/**
 * 更新项目
 */
export const update = (data) => {
  return request.put({ url: '/infra/devops/project/update', data })
}

/**
 * 删除项目
 */
export const deleted = (id) => {
  return request.delete({ url: '/infra/devops/project/deleted?id=' + id })
}

/**
 * 获取单个项目
 */
export const singleGet = (id) => {
  return request.get({ url: '/infra/devops/project/single-get?id=' + id })
}

/**
 * 查询项目
 */
export const listQuery = () => {
  return request.get({ url: '/infra/devops/project/list-query' })
}
